using UnityEngine;
using UnityEngine.UI;

namespace PKGames
{
	public sealed class OneLineGameGridLayouter : HorizontalGridLayouter
	{
		private const float _minAspectRatio = 1.33333337f;

		private const float _maxAspectRatio = 1.77777779f;

		private const float _minCellSizeProportion = 0.4922f;

		private const float _maxCellSizeProportion = 0.5906f;

		private const float _minCellHorizontalSpaceProportion = 0.07811214f;

		private const float _maxCellHorizontalSpaceProportion = 0.132f;

		private const float _minTopMarginProportion = 0.253f;

		private const float _maxTopMarginProportion = 0.2306f;

		private const float _minBottomMarginProportion = 0.253f;

		private const float _maxBottomMarginProportion = 0.1786f;

		private const float _minHorizontalMarginProportion = 0.07811214f;

		private const float _maxHorizontalMarginProportion = 0.09372822f;

		public override float MinAspectRatio => 1.33333337f;

		public override float MaxAspectRatio => 1.77777779f;

		public override float MinCellSizeProportion => 0.4922f;

		public override float MaxCellSizeProportion => 0.5906f;

		public override float MinCellHorizontalSpaceProportion => 0.07811214f;

		public override float MaxCellHorizontalSpaceProportion => 0.132f;

		public override float MinTopMarginProportion => 0.253f;

		public override float MaxTopMarginProportion => 0.2306f;

		public override float MinBottomMarginProportion => 0.253f;

		public override float MaxBottomMarginProportion => 0.1786f;

		public override float MinHorizontalMarginProportion => 0.07811214f;

		public override float MaxHorizontalMarginProportion => 0.09372822f;

		public OneLineGameGridLayouter(RectTransform cellAnchor, GridLayoutGroup cellGrid, RectTransform content, float numberOfCells, RectTransform viewport)
		{
			base.cellAnchor = cellAnchor;
			base.cellGrid = cellGrid;
			base.content = content;
			base.numberOfCells = numberOfCells;
			base.viewport = viewport;
		}
	}
}
